=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|||						|||
|||		Connect 4 Moderator		|||
|||		  by Mike Cobelli		|||
|||						|||
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

Purpuse:
   This program is intended to allow two artificially intelligent computer programs to play Connect 4 against each other.

Start a Game:
   Enter the path of of the two programs in the player 1 and player 2 boxes, then click load players.
   If the programs load properly they should display "p" in their respective output boxes.
   Clicking the go button once will instruct the programs on who goes first. Each successive click will process a turn.

Manual mode:
   Alternatively, player two can be human controlled. To do so, enter the path of a program in player 1,
   then click manual in player 2. Click load, and if player 1 loads correctly, click go to assign turns.
   Use the go button to retrieve the bots turn, then use the "Choose drop" buttons to make your move.

New Game:
   To start a new game simply click reset. The board will be cleared and manual mode will be turned back off.
   Press load to reload the bots, or manual then load to reinitiate manual control. 
   Whichever player went first in the last game will now be second. 


Creating a player bot:
   The Connect 4 Moderator can control any windows console program. It launches the program, then captures its console output.
   It sends input to the program via standard input just as if a person was sitting at the console
   Player programs must fist output a lowercase "p" character. They should then wait for input indicating who goes first (1 or 2).
   If 1 is recieved, the program must output its first move (1 through 7). 
   If 2 is recieved the player program must output "?" to indicate it is ready.
   The next input each program will recieve will be the number 1-7 indicating the opponents move.
   They should process this, then output the number of their next move when ready. 
   As soon as it's available, they will be sent the opponents next move and play will continue in this way.

   Player programs are responsible for keeping track of the board. The only communication between them and the moderator will
   be a single integer indicating the column of the opponents move. Players are responsible for keeping track of the number of
   times a column has been played. Playing in a full column will cause the game to end in an error. 

   On a game end condition, your program will be sent one of the following codes:
	0: ERROR
	-1: Player 1 wins
	-2: Player 2 wins
	-3: Tie game

   You're program is expected to exit on recieving one of these codes. 
   If it has not exited by the time load players is pressed again it will be terminated.
   Additionally, keep in mind that the user could quit or restart the game at any time so it's reccommended that learning
   programs keep a journal of every move and process it on the next program execution. To aid in this, the moderator
   will create a log file named log.txt in its working directory. The log will contain one line for every game played.
   Each line will contain a string of integers listing each move made during the game. An example is detailed below.

	The log would contain:
	  43557644322313
      
	And here is the flow of the actual game:
          Player info sent
	  Player 1 :4
	  Player 2 :3
	  Player 1 :5
	  Player 2 :5
	  Player 1 :7
	  Player 2 :6
	  Player 1 :4
	  Player 2 :4
	  Player 1 :3
	  Player 2 :2
	  Player 1 :2
	  Player 2 :3
	  Player 1 :1
	  Player 2 :3
	  Player 2 Wins

   As you can see, the log makes no indication of which player made which move or which player won, it simply lists all the moves in the order they were made.
   You must determine who was the winner, if there was an error, or if the game ended prematurely.